package com.xjt.feignsentinel.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.xjt.feignsentinel.service.impl.FallBackFeignService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: xu
 * @Description: TODO
 * @Date: 2021/11/14 22:34
 */
@FeignClient(value = "provider",fallbackFactory = FallBackFeignService.class)
public interface FeignService
{
	@GetMapping("/hello2")
	String test2();
	@GetMapping("/hello")
	String test();
}
